import request from "@/utils/suppilerConfig.js"
export default {
    //供应商管理列表数据
    getSuppierList(data) {
        return request({
            url: '/supplier',
            type: "get",
            data: data,
        })
    },
    // 供应商管理编辑
    enditSuppier(linkman) {
        return request({
            url: `/suppiler/${linkman}`,
            type: "post",
            method: "post"
        })
    },
    // 删除列表数据
    delMeberList(id) {
        return request({
            url: `/supplier/${id}`,
            method: "delete",
            type: "delete",
        })
    },
    // 搜索数据
    getSearch(name, linkman) {
        return request({
            url: `/supplier/${name}/${linkman}`,
            type: 'post',
            method: "post",
        })
    },
    // // 新增数据
    getSupplierAdd(name, linkman, mobile, remark) {
        return request({
            url: `/supplier/${name}/${linkman}/${mobile}/${remark}`,
            type: "put",
            method: 'put',
        })
    },
}